from django.conf.urls.defaults import *
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
	(r'^admin/', include(admin.site.urls)),
	(r'^ckeditor/', include('ckeditor.urls')),
)

urlpatterns += patterns('talk',
	(r'^$', 'views.index'), 
	(r'^users/logout/$', 'views.logout'),
	(r'^users/authenticate/$', 'views.authenticated'),
	(r'^users/login/$', 'views.login'),
	(r'^users/signin/(.*)/$', 'views.signin'),
)

urlpatterns += patterns('talk',
	(r'^talk/entres/$', 'views.add_talk'),
	(r'^talk/entres/submit/$', 'views.submit_talk'),	
	(r'^talk/entres/(?P<entry_id>.*)/$', 'views.view_talk'),	
)

urlpatterns += staticfiles_urlpatterns()
